﻿<%@ Page Language="C#" MasterPageFile="~/Home/login.master" AutoEventWireup="true" CodeFile="sell.aspx.cs" Inherits="Home_sell" Title="Welcome to IT" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <table style="width: 100%" cellspacing="0" cellpadding="0">
							        <tr>
								        <td style="width: 26px; height: 20px; vertical-align: top;" class="style12">
								        <img src="images/conner3_left_top.gif" width="26" height="20" alt="" /></td>
								        <td class="style10" style="height: 20px; text-align: center; width: 602px;"><b>Quy trình bán hàng</b></td>
								        <td style="height: 20px; vertical-align: top" class="style13">
								        <img src="images/conner3_left_right.gif" width="25" height="20" alt="" /></td>
							        </tr>
							        <tr>
								        <td style="width: 26px; vertical-align:top; height: 473px;" class="style12">
								        <img src="images/left3_bg.gif" width="25" height="58" alt="" /></td>
								        <td valign="top" class="style11" style="width: 602px; height: 473px;">&nbsp;								 
								        <%
	                                        string sel;
					                        sel=Request["sel"];
	        					            if(sel=="100"){ %>
                                            <table style="width: 100%">
                                                <tr>
                                                    <td align="center" colspan="2" style="height: 56px">
                                                        <strong>
                                                        GIỚI THIỆU QUY TRÌNH BÁN HÀNG</strong>
                                                     </td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; width: 36px; text-align: right">
                                                    </td>
                                                    <td>
                                                        1. Chọn danh mục hàng hóa</td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; width: 36px; text-align: right">
                                                    </td>
                                                    <td>
                                                        2. Đặt tên và mô tả sản phẩm</td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; width: 36px; text-align: right">
                                                    </td>
                                                    <td>
                                                        3. Mô tả giá và thời gian</td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; width: 36px; text-align: right">
                                                    </td>
                                                    <td>
                                                        4. Chọn hình thức thanh toán và vận chuyển</td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; width: 36px; text-align: right">
                                                    </td>
                                                    <td>
                                                        5. Xem lại và đồng ý đưa sản phẩm lên đấu giá</td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; width: 36px; text-align: right; height: 26px;">
                                                    </td>
                                                    <td style="width: 100px; height: 26px;">
                                                        <asp:Button ID="Bt_batdau" runat="server" Text="Bắt đầu" OnClick="Bt_batdau_Click" /></td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; width: 36px; text-align: right">
                                                    </td>
                                                    <td style="width: 100px">
                                                    </td>
                                                </tr>
                                            </table>
                                        <%} %>
                                        <%if(sel=="102"){ %>
                                         
                                            <table style="width: 100%">
                                                <tr>
                                                    <td align="center" colspan="2" style="height: 55px">
                                                        <strong>
                                                        CHỌN DANH MỤC HÀNG HÓA</strong></td>
                                                </tr>
                                                <tr>
                                                <td>
                                                    Loại hàng hóa
                                                </td>
                                                    
                                                    <td style="width: 100px">
                                                        
                                                        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlData_dmsp"
                                                            DataTextField="DienGiai" DataValueField="ID" Width="150px">
                                                        </asp:DropDownList>
                                                        <asp:SqlDataSource ID="SqlData_dmsp" runat="server" ConnectionString="<%$ ConnectionStrings:db_connection %>"
                                                            DeleteCommand="DELETE FROM [DM001] WHERE [ID] = @ID" InsertCommand="INSERT INTO [DM001] ([DienGiai]) VALUES (@DienGiai)"
                                                            SelectCommand="SELECT * FROM [DM001] ORDER BY [DienGiai]" UpdateCommand="UPDATE [DM001] SET [DienGiai] = @DienGiai WHERE [ID] = @ID">
                                                            <DeleteParameters>
                                                                <asp:Parameter Name="ID" Type="Int32" />
                                                            </DeleteParameters>
                                                            <UpdateParameters>
                                                                <asp:Parameter Name="DienGiai" Type="String" />
                                                                <asp:Parameter Name="ID" Type="Int32" />
                                                            </UpdateParameters>
                                                            <InsertParameters>
                                                                <asp:Parameter Name="DienGiai" Type="String" />
                                                            </InsertParameters>
                                                        </asp:SqlDataSource>
                                                        
                                                        </td>
                                                </tr>
                                                <tr>
                                                <td>
                                                     Nhóm hàng hóa
                                                </td>
                                                    
                                                    <td style="width: 100px">
                                                      
                                                        <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlData_sp" DataTextField="DienGiai"
                                                            DataValueField="ID" Width="150px" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
                                                        </asp:DropDownList><asp:SqlDataSource ID="SqlData_sp" runat="server" ConnectionString="<%$ ConnectionStrings:db_connection %>"
                                                            DeleteCommand="DELETE FROM [DM002] WHERE [ID] = @ID" InsertCommand="INSERT INTO [DM002] ([DienGiai]) VALUES (@DienGiai)"
                                                            SelectCommand="SELECT [ID], [DienGiai] FROM [DM002] WHERE ([ID_DM001] = @ID_DM001) ORDER BY [DienGiai]"
                                                            UpdateCommand="UPDATE [DM002] SET [DienGiai] = @DienGiai WHERE [ID] = @ID">
                                                            <DeleteParameters>
                                                                <asp:Parameter Name="ID" Type="Int32" />
                                                            </DeleteParameters>
                                                            <UpdateParameters>
                                                                <asp:Parameter Name="DienGiai" Type="String" />
                                                                <asp:Parameter Name="ID" Type="Int32" />
                                                            </UpdateParameters>
                                                            <SelectParameters>
                                                                <asp:ControlParameter ControlID="DropDownList1" Name="ID_DM001" PropertyName="SelectedValue"
                                                                    Type="Int32" />
                                                            </SelectParameters>
                                                            <InsertParameters>
                                                                <asp:Parameter Name="DienGiai" Type="String" />
                                                            </InsertParameters>
                                                        </asp:SqlDataSource>
                                                        </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" style="width: 81px">
                                                    </td>
                                                    <td style="width: 100px">
                                                        &nbsp;<asp:Button ID="Bt_tiep1" runat="server" Text="Tiếp tục" OnClick="Bt_tiep1_Click" /></td>
                                                </tr>
                                            </table>
                                          <%} %>
                                          <%if(sel=="103"){ %>
                                            <table style="width: 100%">
                                                <tr>
                                                    <td align="center" colspan="2" style="height: 54px">
                                                        <strong>
                                                        ĐẶT TÊN VÀ MÔ TẢ SẢN PHẨM</strong>
                                                     </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" colspan="2" style="height: 54px">
                                                        <strong>
                                                        <asp:Label ID="loi1" runat="server" Text="" CssClass="styles30" ForeColor=red></asp:Label>
                                                        </strong>
                                                     </td>
                                                </tr>
                                                
                                                <tr>
                                                    <td style="vertical-align: top; text-align: right; height: 21px; width: 168px;">
                                                        Tên sản phẩm</td>
                                                    <td style="width: 313px; height: 21px;">
                                                        <asp:TextBox ID="txtsp" runat="server" Width="300px" MaxLength="40"></asp:TextBox></td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; text-align: right; width: 168px;">
                                                        Mô tả ngắn ngọn
                                                    </td>
                                                    <td style="width: 313px">
                                                        <asp:TextBox ID="txtmota" runat="server" Width="300px" MaxLength="80"></asp:TextBox></td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; text-align: right; width: 168px; height: 70px;">
                                                        Mô tả chi&nbsp; tiết</td>
                                                    <td style="width: 313px; height: 70px;">
                                                    <textarea runat ="server" ID="txtchitiet" style="width: 300px; height: 80px" ></textarea>
                                                        </td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; text-align: right; height: 22px; width: 168px;">
                                                        Hình ảnh</td>
                                                    <td style="width: 313px; height: 22px;">
                                                        <asp:FileUpload ID="FileUpload_sp1" runat="server" Width="304px" /><br />
                                                       
                                                        </td>
                                                </tr>
                                                <tr>
                                                     <td style="vertical-align: top; text-align: right; height: 22px; width: 168px;">
                                                        Hình ảnh</td>
                                                    <td style="width: 313px; height: 22px;">
                                                        <asp:FileUpload ID="FileUpload_sp2" runat="server" Width="304px" /><br />
                                                        
                                                     </td>
                                                </tr>
                                                  <tr>
                                                     <td style="vertical-align: top; text-align: right; height: 22px; width: 168px;">
                                                        Hình ảnh</td>
                                                    <td style="width: 313px; height: 22px;">
                                                        <asp:FileUpload ID="FileUpload_sp3" runat="server" Width="304px" /><br />
                                                        
                                                     </td>
                                                </tr>
                                                
                                                <tr>
                                                    <td style="vertical-align: top; width: 168px; height: 21px; text-align: right">
                                                    </td>
                                                    <td style="height: 21px; width: 313px;">
                                                        &nbsp;<asp:Button ID="Bt_tiep2" runat="server" Text="Tiếp tục" OnClick="Bt_tiep2_Click" />
                                                        <asp:Button ID="Bt_back1" runat="server" Text="Trở lại" OnClick="Bt_back1_Click" /></td>
                                                </tr>
                                            </table>
                                            <%} %>
                                            <%if(sel=="104"){ %>
                                            <table style="width: 100%">
                                                <tr>
                                                    <td align="center" colspan="2" style="height: 54px">
                                                        <strong>
                                                        MÔ TẢ GIÁ VÀ THỜI GIAN</strong></td>
                                                </tr>
                                                 <tr>
                                                    <td align="center" colspan="2" style="height: 54px">
                                                        <strong>
                                                         <asp:Label ID="loi2" runat="server" Text="" CssClass="styles30" ForeColor=red></asp:Label>
                                                        </strong>
                                                     </td>
                                                </tr>
                                                
                                              
                                                
                                                <tr>
                                                <td style="width: 136px">
                                                    Giá khởi điểm
                                                </td>
                                                    
                                                    <td style="width: 100px">
                                                        <asp:TextBox ID="txtgia_khoidiem" runat="server" Width="196px"></asp:TextBox>vnd</td>
                                                </tr>
                                                <tr>
                                                <td style="width: 136px">
                                                    Giá sàn
                                                </td>
                                                    
                                                    <td style="width: 100px; height: 25px;">
                                                        <asp:TextBox ID="txtgia_san" runat="server" Width="196px"></asp:TextBox>vnd</td>
                                                </tr>
                                                <tr>
                                                <td style="width: 136px; height: 26px;">
                                                    Giá mua ngay
                                                </td>
                                                    
                                                    <td style="width: 100px; height: 26px;">
                                                        <asp:TextBox ID="txtgia_muangay" runat="server" Width="194px"></asp:TextBox>vnd</td>
                                                </tr>
                                                <tr>
                                                <td style="width: 136px">
                                                    Khoảng cách nâng giá
                                                </td>
                                                 
                                                    <td style="width: 100px">
                                                        <asp:TextBox ID="txt_khoancach" runat="server" Width="194px"></asp:TextBox>vnd</td>
                                                </tr>
                                                <tr>
                                                <td style="width: 136px">
                                                    Thời gian đấu giá
                                                </td>
                                                    
                                                    <td>
                                                        Ngày<asp:TextBox ID="txtngay" runat="server" Width="16px" MaxLength="2"></asp:TextBox>Tháng
                                                        <asp:TextBox ID="txtthang" runat="server" Width="25px" MaxLength="2"></asp:TextBox>Năm
                                                        <asp:TextBox ID="txtnam" runat="server" Width="29px" MaxLength="4"></asp:TextBox>
                                                        Giờ<asp:TextBox ID="txtgio" runat="server" Width="20px" MaxLength="2"></asp:TextBox>Phút
                                                        <asp:TextBox ID="txtphut" runat="server" Width="19px" MaxLength="2"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td >
                                                        Vị trí sản phẩm
                                                    </td>
                                                    <td style="width: 100px; height: 21px;">
                                                        <asp:TextBox ID="txtvitri_sp" runat="server" Width="197px"></asp:TextBox></td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; width: 136px; text-align: right">
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="Bt_tiep3" runat="server" Text="Tiếp tục" OnClick="Bt_tiep3_Click" />
                                                        <asp:Button ID="Bt_back2" runat="server" Text="Trở lại" OnClick="Bt_back2_Click" /></td>
                                                </tr>
                                            </table>
                                              <%} %>
                                              <%if(sel=="105"){ %>
                                            <table style="width: 100%">
                                                <tr>
                                                    <td align="center" colspan="2" style="height: 52px">
                                                        <strong>
                                                        HÌNH THỨC THANH TOÁN VÀ VẬN CHUYỂN</strong>
                                                        </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" colspan="2" style="height: 52px">
                                                        <asp:Label ID="loi3" runat="server" Text="" CssClass="styles30" ForeColor=red></asp:Label>
                                                        </td>
                                                </tr>
                                               
                                                <tr>
                                                    <td style="vertical-align: top; text-align: right; width: 170px; height: 10px;">
                                                        Hình thức thanh toán</td>
                                                    <td style="width: 100px; height: 10px;">
                                                        <asp:DropDownList ID="DropDownList_thanhtoan" runat="server">
                                                        </asp:DropDownList></td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; text-align: right; width: 170px;">
                                                        Địa điểm vận chuyển</td>
                                                    <td style="width: 100px">
                                                    
                                                        <asp:Panel ID="Panel1" runat="server" Width="225px">
                                                        Trong nước<asp:RadioButton ID="RadioButton1" runat="server" Checked="True" OnCheckedChanged="RadioButton1_CheckedChanged" AutoPostBack="True" />
                                                        Ngoài nước<asp:RadioButton ID="RadioButton2" runat="server" OnCheckedChanged="RadioButton2_CheckedChanged" AutoPostBack="True" />
                                                        
                                                        </asp:Panel>
                                                    </td>
                                                     </tr>
                                                     <tr>
                                                     <td style="vertical-align: top; text-align: right; width: 170px;">
                                                        Tên địa điểm</td>
                                                        
                                                        <td>
                                                            <%if (RadioButton1.Checked == true)
                                                          { %><asp:DropDownList ID="DropDownList3" runat="server">
                                                        </asp:DropDownList>
                                                        
                                                        <%} else{%>
                                                        <asp:TextBox ID="txtdia_diem" runat="server" Width="300px" OnTextChanged="txtdia_diem_TextChanged"></asp:TextBox><br />
                                                        <%} %>
                                                        </td>
                                                     </tr>
                                                        
                                                        
                                               
                                                <tr>
                                                    <td style="vertical-align: top; text-align: right; width: 170px;">
                                                        Chi phí vận chuyển</td>
                                                    <td style="width: 100px">
                                                        <asp:TextBox ID="txtchi_phi" runat="server" Width="116px"></asp:TextBox>vnd</td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; text-align: right; width: 170px;">
                                                        Quy định trả hàng</td>
                                                    <td style="width: 100px">
                                                        <asp:TextBox ID="txtqui_dinh" runat="server" Width="300px"></asp:TextBox></td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; text-align: right; width: 170px; height: 26px;">
                                                        Tiền thuế</td>
                                                    <td style="width: 100px; height: 26px;">
                                                        <asp:TextBox ID="txttien_thue" runat="server" Width="113px"></asp:TextBox>vnd</td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: top; width: 170px; text-align: right">
                                                    </td>
                                                    <td>
                                                    <asp:Button ID="Bt_tiep4" runat="server" Text="Đồng ý" OnClick="Bt_tiep4_Click" />
                                                        &nbsp;<asp:Button ID="Bt_xemlai" runat="server" Text="Xem lại" OnClick="Bt_xemlai_Click" />
                                                        <asp:Button ID="Bt_back3" runat="server" Text="Trở lại" OnClick="Bt_back3_Click" /></td>
                                                </tr>
                                            </table>
                                             <%} %>
                                             <%if(sel=="106"){ %>
                                            <table style="width: 100%">
                                                <tr>
                                                    <td align="center" colspan="2" style="height: 50px">
                                                        <strong>
                                                        XEM LẠI VÀ ĐƯA SẢN PHẨM LÊN ĐẤU GIÁ</strong></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Loại hàng hóa
                                                        </td>
                                                    <td>
                                                        <b><asp:Label ID="Label1" runat="server" Text=""></asp:Label></b>
                                                        
                                                     </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Nhóm hàng hóa</td>
                                                    <td style="width: 100px; height: 21px;">
                                                        <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Tên sản phẩm</td>
                                                    <td>
                                                        <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Mô tả ngắn ngọn</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Mô tả chi tiết</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Hình ảnh</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label6" runat="server" Text="chưa có"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Giá khởi điểm</td>
                                                    <td style="width: 100px; height: 21px;">
                                                        <asp:Label ID="Label7" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Giá sàn</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label8" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Giá mua ngay</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label9" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Khoảng cách nâng giá</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label10" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Thời gian đấu giá</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label11" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Vị trí sản phẩm</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label12" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Hình thức thanh toán</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label13" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Địa điểm vận chuyển</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label14" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Chi phí vận chuyển</td>
                                                    <td style="width: 100px; height: 21px;">
                                                        <asp:Label ID="Label15" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Quy định trả hàng</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label16" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Tiền thuế</td>
                                                    <td style="width: 100px">
                                                        <asp:Label ID="Label17" runat="server" Text="Label"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td></td><td></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="Bt_tiep5" runat="server" Text="Đồng ý" OnClick="Bt_tiep5_Click" />
                                                        <asp:Button ID="Bt_xoa" runat="server" Text=" Xóa " /></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 102px">
                                                    </td>
                                                    <td style="width: 100px">
                                                    </td>
                                                </tr>
                                            </table>
                                           <%} %>
                                           <%if(sel=="tb"){%>
                                            <table align=center width=100%>
                                                <tr>
                                                    <td style="width: 134px"></td>
                                                    <td>
                                                         
                                                         <asp:Label ID="tb_thanh" runat="server" Text="" CssClass="styles30" ForeColor="#0033ff"></asp:Label>
                                                         <br /><br />
                                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                                                         <a href="sell.aspx?sel=100">Tếp tục</a>
                                                    </td>
                                                </tr>
                                              
                                            </table>
                                             
                                           <%} %>
                                            <%if(sel=="loi"){%>
                                            <table align=center width=100%>
                                                <tr>
                                                    <td style="width: 134px"></td>
                                                    <td>
                                                         <asp:Label ID="tb_loi" runat="server" Text="" CssClass="styles30" ForeColor=red></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                           <%} %>
                                            <br />
                                            <br />
                                            <br />
                                        </td>
								        <td class="style13" valign="top" style="height: 473px">
								        <img src="images/right3_bg.gif" width="25" height="58"alt="" id="IMG1" language="javascript" onclick="return IMG1_onclick()" /></td>
							        </tr>
							        <tr>
								        <td style="width: 26px">
								        <img src="images/conner3_bottom_left.gif" width="26" height="46" alt="" /></td>
								        <td class="style8" style="width: 602px">&nbsp;</td>
								        <td>
								        <img src="images/conner3_bottom_right.gif" width="25" height="46"></td>
							        </tr>
						        </table>

</asp:Content>

